import { Field, InputType, PartialType } from '@nestjs/graphql';

@InputType()
export class TimetableInput {
  @Field({
    description: '上课日期',
  })
  classDay: Date;

  @Field({
    description: '上课时间',
  })
  startTime: string;

  @Field({
    description: '结束时间',
  })
  endTime: string;

  @Field({
    description: '人数限制',
    nullable: true,
  })
  limitNumber: number;

  @Field({
    description: '所属门店',
    nullable: true,
  })
  orgId: string;

  @Field({
    description: '所属课程',
    nullable: true,
  })
  courseId: string;
}

@InputType()
export class PartialTimetableInput extends PartialType(TimetableInput) {}
